<?php
namespace Admin\Controller;
use Think\Controller;

/**
 * Class IndexController
 * @package Admin\Controller
 * 管理页面
 */
class IndexController extends AdminBasicController {


    public $config_obj = '';
    public function _initialize(){
        $this->checkLogin();
        $this->config_obj = D('Config');
    }
    
    public function index(){
        $this->display('index');
    }
    public function top(){
        $this->assign('admin',session('A_ACCOUNT'));
        $config = $this->config_obj->findConfig();
        $this->assign('config',$config);
        $this->display('top');
    }
    public function left(){
        $this->display('left');
    }
    public function main(){
        
        $this->display('main');
    }
}